﻿#include "FITKAbaAbstractStep.h"

bool Interface::FITKAbaAbstractStep::copy(FITKAbstractDataObject* obj)
{
    FITKAbaAbstractStep* step = dynamic_cast<FITKAbaAbstractStep*>(obj);
    if (step == nullptr)
        return false;
    this->m_active = step->m_active;
    this->m_description = step->m_description;
    this->m_nlgeom = step->m_nlgeom;
    this->m_time = step->m_time;
    this->m_restartFrequency = step->m_restartFrequency;
    this->m_restartNumberInterval = step->m_restartNumberInterval;
    this->m_restartOverlay = step->m_restartOverlay;
    this->m_restartTimeMarks = step->m_restartTimeMarks;
    return true;
}

bool Interface::FITKAbaAbstractStep::isPerturbation() const
{
    return false;
}

QString Interface::FITKAbaAbstractStep::getDecription() const
{
    return m_description;
}

void Interface::FITKAbaAbstractStep::setDescription(const QString &description)
{
    m_description = description;
}

bool Interface::FITKAbaAbstractStep::getNlgeom() const
{
    return m_nlgeom;
}

void Interface::FITKAbaAbstractStep::setNlgeom(bool stat)
{
    m_nlgeom = stat;
}

double Interface::FITKAbaAbstractStep::getTime() const
{
    return m_time;
}

void Interface::FITKAbaAbstractStep::setTime(double time)
{
    m_time = time;
}

bool Interface::FITKAbaAbstractStep::isActive() const
{
    return m_active;
}

void Interface::FITKAbaAbstractStep::setActive(bool stat)
{
    m_active = stat;
}

int Interface::FITKAbaAbstractStep::getRestartWriteFrequency() const
{
    return m_restartFrequency;
}

void Interface::FITKAbaAbstractStep::setRestartWritFrequency(int frequency)
{
    m_restartFrequency = frequency;
}

int Interface::FITKAbaAbstractStep::getRestartWriteIntervals() const
{
    return m_restartNumberInterval;
}

void Interface::FITKAbaAbstractStep::setRestartWriteIntervals(int num)
{
    m_restartNumberInterval = num;
}

bool Interface::FITKAbaAbstractStep::getOverlayState() const
{
    return m_restartOverlay;
}

void Interface::FITKAbaAbstractStep::setOverlayState(bool stat)
{
    m_restartOverlay = stat;
}

bool Interface::FITKAbaAbstractStep::getTimeMarkState() const
{
    return m_restartTimeMarks;
}

void Interface::FITKAbaAbstractStep::setTimeMarkState(bool stat)
{
    m_restartTimeMarks = stat;
}
